Skip to main content

Click

AutomatR.Windows.Activities.Click

The "Click" activity in AutomatR for Windows UI Automation allows you to interact with a specified UI element by simulating a click. This activity is useful for automating UI interactions involving buttons, links, or other clickable elements in Windows applications.

Properties

NameDescription
Input
Click TypeSpecifies the type of click action to perform on the UI element. Options include Single (default), Double, and Right-click.
Windows SelectorSpecifies the selector that identifies the target UI element within the Windows application. It helps in uniquely identifying the UI element. String variables containing the selector.
Windows ElementIndicates the UI element on the app with the help of the window selector window. InArgument<Selector> variables containing the UI element information.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
TimeoutSpecifies the time limit in seconds for the activity to be executed before throwing an exception. Integer variables containing the timeout duration. If not provided, the default timeout is used.
DelaySpecifies the amount of time (in seconds) to wait before starting the activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Click" activity onto the workflow.
  2. Configure the properties by specifying either the Windows Selector or the Windows Element to identify the target clickable UI element.
  3. Optionally, choose the type of click action (Single, Double, or Right-click).
  4. Optionally, configure the timeout and delay settings.
  5. Execute the workflow to simulate the specified click action on the UI element.

Example: Consider an example where the "Click" activity is used to perform a single click on a button in a Windows application:

Click:
Display Name: "Click OK Button"
Windows Selector: "[Selector to identify the OK button]"
Click Type: Single
Timeout: 10

In this example, the activity uses the specified selector to identify the target button, performs a single click action, and sets a timeout of 10 seconds for the operation.